package cn.yunhe.entity;




import javax.persistence.*;
import java.io.Serializable;
@Entity(name = "员工")
@Table(name = "t_person")
public class Person implements Serializable {
    private  Integer pid;
    private  String username;
    private  String userpassword;
    private Integer age;

    public Person() {
    }

    public Person(Integer pid, String username, String userpassword, Integer age) {
        this.pid = pid;
        this.username = username;
        this.userpassword = userpassword;
        this.age = age;
    }

    @Id
    @GeneratedValue
    @Column(name = "pid")
    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
    @Column(name = "username")
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    @Column(name = "userpassword")
    public String getUserpassword() {
        return userpassword;
    }

    public void setUserpassword(String userpassword) {
        this.userpassword = userpassword;
    }
    @Column(name = "age")
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
